docker pull ubuntu:20.04 (edited)libc6_2.31-0ubuntu9.8_amd64
libc6_2.31-0ubuntu9.9_amd64libc6_2.31-0ubuntu9.9_amd64 maybeb"\n\x07\xeed\x05\x8e\xf6\x94=\x85\x17\x84\x11i\x1c\x89\x02u\x1f\x8c\x01\x83\x0b\x85\x16\x9a\x0e\x8c\x00\x84\x03\x85\x17\xb3\x0f\x9f<\xe4\x17\xb7`\x957\xf9\xd5\xafF\xa2C\xb1Z\xa0|b\xf9k\x06\xad\x1d\xc9>\xf3\xe4\x932\xc3\x1e\xa1\n\xc3\x1c\xd30\xd3<\xd0>\xce\x8b\xdf2\xc2\t\xcf\x81\xcd\x89\xc9\xf32\x95\xc4\x80\xba\x99\xe9\x10\xe0\t\xdd09t>e_: \x10\xc4,\x08\x12\xc8$\xdcXskTTso,\xf03\xd3t\xbc3\xb7<\xa8\xd3\xfb4\xa4\xd3\xff,\xa0\xd3\xe3T\xccS\xc7\\\xf83KT\xf43Ol\xd0s\xb34\x9c\xf3\x97\xfc\x88\xd3\x9b\xf4\x84\xd3\x9f\xec\x80\xd3\x83\xd4\xecS\xe7\\\x98\xf3\xab\xd4\x94\xf3\xaf,\xb03\x93\xf4\xfc3w<hS;4dS?,`S#\xd4\x0c\xd3\x07\xdc83\x0b\xd443\x0f\xec\x10\xf3\xf34\\s\xd7|\xc8S\xdbt\xc4S\xdfl\xc0S\xc3T,\xd3'\xdc\xd8s\xebT\xd4s\xef,p3St"crewctf{well_i_didnt_know_rop_can_be_so_obnoxious_especially_for_rever_but_if_you_can_find_this_you_are_a_god_rever}#!/usr/bin/python3
from pwn import *
import string
from string import ascii_lowercase
context.log_level = "critical"
flag = "crewctf{well_i_didnt_know_rop_can_be_so_obnoxious_especially_for_rever_but_if_you_can_find_this_you_are_a_go"
#chars = string.printable[:-6]
chars = ascii_lowercase + "}_"
c = "0"
while (c != '}'):
m = 0
for i in chars:
print(f"[+] Trying: {repr(flag + i)}")
r = process("/home/iy3dmejri/MyOptNow/pin-3.26-98690-g1fc9d60e6-gcc-linux/pin -t /home/iy3dmejri/MyOptNow/pin-3.26-98690-g1fc9d60e6-gcc-linux/source/tools/ManualExamples/obj-intel64/inscount0.so -- ./a.out".split(" "))
print(r.recv())
r.sendline((flag + i).encode())
r.wait()
r.close()
with open("./inscount.out") as f:
count = int(f.read().split(" ")[1].strip())
if (count > m):
m = count
c = i
f.close()
print(f"[+] FOUND: {c}")
flag += c
print(flag) (edited)